package com.crr.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("user")
@ApiModel("用户信息表")
public class User {
    @TableId(value = "user_id", type = IdType.AUTO)
    @ApiModelProperty("用户id")
    Integer user_id;
    @TableField("nick_name")
    @ApiModelProperty("用户昵称")
    String nick_name;
    @ApiModelProperty("用户头像")
    String pic;
    @ApiModelProperty("用户状态")
    Integer status;
    @ApiModelProperty("用户收获地址信息")
    @TableField(exist = false)
    List<UserAddr> userAddrList;

}
